﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright company="Collaboris Ltd." file="EntityBase.cs">
//   Copyright (c) Collaboris Ltd. All rights Reserved.
// </copyright>
// <summary>
//   Base class for all Entities
// </summary>
// --------------------------------------------------------------------------------------------------------------------
namespace Collaboris.SharePoint.Wss.Entities
{
    using System;
    using System.Xml.Serialization;

    [Serializable]
    public class EntityBase
    {
        private int index;

        /// <summary>
        /// Gets an index 
        /// specifying the index for the Entity within the Action.
        /// </summary>
        /// <value>The index.</value>
        /// <remarks>The Index is zero based.</remarks>
        [XmlAttribute]
        public int Index
        {
            get
            {
                return this.index;
            }

            set
            {
                this.index = value;
            }
        }
        
    }
}